package com.ruoyi.hire.controller.company;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.hire.domain.vo.CompanyRegisterCaptchaCodeVo;
import com.ruoyi.hire.domain.vo.ValidateSmsResultVo;
import com.ruoyi.hire.service.IHireCompanyLoginService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

//预期作废
@RestController("CompanySmsController")
public class SmsController {

    @Resource
    private RedisCache redisCache;


    @Resource
    private IHireCompanyLoginService hireCompanyLoginService;

    /**
     * 用人单位注册时的短信验证码校验
     *
     * @param vo
     * @return
     */
//    @PostMapping("/site/hire/company/check/smsCode")
//    public AjaxResult checkSms(@RequestBody CompanyRegisterCaptchaCodeVo vo) {
//        ValidateSmsResultVo validateSmsResultVo = hireCompanyLoginService.validateSms(vo.getPhoneNumber(), vo.getCode(), vo.getUuid());
//        return AjaxResult.success(validateSmsResultVo.getMessage(), validateSmsResultVo);
//    }
}
